//
//  YXDownloadedTableViewCell.m
//  MockProject
//
//  Created by FanYu on 23/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import "YXDownloadedTableViewCell.h"

@implementation YXDownloadedTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.titleLabel.textColor = [UIColor colorWithHexString:@"403e3d"];
    self.titleLabel.font = [UIFont systemFontOfSize:15];
    
    self.timeLabel.textColor = [UIColor colorWithHexString:@"a3a1a0"];
    self.timeLabel.font = [UIFont systemFontOfSize:12];
    
    self.sizeLabel.textColor = [UIColor colorWithHexString:@"a3a1a0"];
    self.sizeLabel.font = [UIFont systemFontOfSize:12];

    self.timeImageView.image = [UIImage imageNamed:@"时间icon"];
    
    self.selectionImageView.image = [UIImage imageNamed:@"删除圆形正常"];
    self.selectionImageView.highlightedImage = [UIImage imageNamed:@"删除圆形选中"];
    self.selectionImageView.hidden = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setTaskModel:(YXTaskModel *)taskModel {
    _taskModel = taskModel;
    
    self.titleLabel.text = taskModel.title;
    self.timeLabel.text = taskModel.time;
    self.sizeLabel.text = taskModel.size;
    self.tag = taskModel.uid.integerValue;
    self.uid = taskModel.uid.integerValue;
}

@end
